﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace desktop
{
    public class Models
    {
        public enum MarkType
        {
            ExtensionName,
            AppName,
            Image
        }
        public enum OuterFileType
        {
            Gather,
            File,
            Folder
        }

        public class WindowsInfo
        {
            public bool topMost { get; set; }

        }


        public class Key_Value
        {
            public string key { get; set; }
            public string value { get; set; }
        }

        /// <summary>
        /// 应用里要显示的图标
        /// </summary>
        public class DesktopInfo
        {
            /// <summary>
            /// 初始位置
            /// </summary>
            public string originalPath { get; set; }
            /// <summary>
            /// 现在位置
            /// </summary>
            public string nowPath { get; set; }
            /// <summary>
            /// 文件类型
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 排序序号
            /// </summary>
            public string number { get; set; }
        }

        /// <summary>
        /// 图标信息
        /// </summary>
        public class Icon
        {
            /// <summary>
            /// 图标路径
            /// </summary>
            public string path { get; set; }
            /// <summary>
            /// 程序名（带后缀名）或程序类型
            /// </summary>
            public string mark { get; set; }
            public MarkType markType { get; set; }
        }

        /// <summary>
        /// html展示实体
        /// </summary>
        public class ShowView
        {
            public string path { get; set; }
            public string name { get; set; }
            public string fullName { get; set; }
            /// <summary>
            /// UI排序
            /// </summary>
            public int number { get; set; }
        }

        /// <summary>
        /// 文件信息
        /// </summary>
        public class FileInfo
        {
            /// <summary>
            /// 带有扩展名
            /// </summary>
            public string name { get; set; }
            public string path { get; set; }
            public string extension { get; set; }
            public string icon { get; set; }
            /// <summary>
            /// UI排序
            /// </summary>
            public int number { get; set; }
        }
        public class FolderInfo
        {
            /// <summary>
            /// 
            /// </summary>
            public string name { get; set; }
            /// <summary>
            /// 应用路径
            /// </summary>
            public string path { get; set; }
            /// <summary>
            /// 图标名称
            /// </summary>
            public string icon { get; set; }
            public List<FileInfo> files { get; set; }
            public List<FolderInfo> folders { get; set; }
            /// <summary>
            /// UI排序
            /// </summary>
            public int number { get; set; }
        }
    }
}
